package cn.youqu.happy.module.youqu.controller.app.userBlack.vo;

import cn.youqu.happy.framework.common.validation.InEnum;
import cn.youqu.happy.module.youqu.enums.userBalck.UserBlackTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@ApiModel("用户 APP - 用户黑名单更新 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppUserBlackUpdateReqVO extends AppUserBlackBaseVO {

    @ApiModelProperty(value = "主键", required = true)
    @NotNull(message = "主键不能为空")
    private Integer id;

    @ApiModelProperty(value = "加黑类型")
    @NotNull(message = "加黑类型 不能为空")
    @InEnum(value = UserBlackTypeEnum.class, message = "请选择正确的加黑类型")
    private Integer blackType;

}
